﻿@model FloodFree.Web.Areas.Admin.ViewModels.CityAddViewModel


@{
    ViewBag.Title = @Resources.Resource.AdminAddCityTitle;
    Layout = "~/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>@Resources.Resource.City</h2>
@{
    Html.RenderPartial("_ValidationSummary", ViewData.ModelState);
}


@using (Html.BeginForm()) {
   
    <fieldset>
        <div class="editor-label">
            @Html.LabelFor(model => model.City.Name)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(x => x.City.Name)
            @Html.ValidationMessageFor(model => model.City.Name)
        </div>
        <div class="editor-label">
            @Html.Label(@Resources.Resource.State)
            
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.City.State.Id,
                    new SelectList(Model.States, "Id", "Name"))
            @Html.ValidationMessageFor(model => model.City.State.Name)
        </div>

        <p>
            <input type="submit" value="@Resources.Resource.SaveButton" class="btn btn-primary" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink(@Resources.Resource.BackToList, "Index")
</div>

